<template>
  <div class="tabbar">
    <router-link v-for="(item,index) in tabbar" :key="index" :to="item.link">{{item.text}}</router-link>
  </div>
</template>

<script>
export default {
    props:{
        tabbar:{ type: Array }
    }
}
</script>

<style>
.tabbar{
    display: flex;
    justify-content: space-around;
    padding: 10px;
    border-top: 1px solid #ccc;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: white;
}
</style>